package main

import "fmt"

func Add01(a, b int) int {
	return a + b
}

type long int

func (tmp long) Add02(other long) long {
	return tmp + other
}

func main() {
	var result int
	result = Add01(1, 1)
	fmt.Println("function-result = ", result)

	var a long = 2
	r := a.Add02(3)
	fmt.Println("method-result = ", r)

}
